<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="js2.js"></script>
    <script type="text/javascript" src="js1.js"></script>

</head>
<body>

safasfafafafgf

<script>
    // 多个js文件中相同名字的函数是覆盖，类似于java的重写
    fun1();

</script>

</body>
</html>